import Vue from 'vue'
import VueRouter from 'vue-router'
// import router from './router'


Vue.use(VueRouter)

const routes = [{
        path: '/home',
        name: 'Home',
        meta: {
            options: true
        },
        component: () =>
            import ('../views/Home.vue')
    },
    {
        path: '/mycenter',
        name: 'MyCenter',
        component: () =>
            import ('../views/MyCenter.vue')
    }, {
        path: '/design',
        name: 'Design',
        component: () =>
            import ('../views/Design.vue')
    },
    {
        path: '/',
        name: 'Login',
        component: () =>
            import ('../views/login.vue')
    },
    {
        path: '/set',
        name: 'Set',
        component: () =>
            import ('../views/set.vue')
    },
    {
        path: '/filtrate',
        name: 'Filtrate',
        component: () =>
            import ('../views/filtrate.vue')
    },
    {
        path: '/found',
        name: 'Found',
        component: () =>
            import ('../views/found.vue')
    },
    {
        path: '/detail/:id',
        name: 'Detail',
        component: () =>
            import ('../views/Detail.vue')
    }
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
});
export default router